﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class PrintIndexOfLeters
{
    static void Main()
    {
        string Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
        char[] alphaArr = Alphabet.ToCharArray();
        Console.Write("Enter Word: ");
        string Word = Console.ReadLine();
        char[] wordArr = Word.ToCharArray();
        List<int> indexArr = new List<int>();
        for (int index = 0; index < wordArr.Length; index++) 
        {
            for (int count = 0; count < alphaArr.Length; count++) 
            {
                if (alphaArr[count] == wordArr[index]) 
                {
                    indexArr.Add(count);
                }
            }
        }
            foreach (int indexShow in indexArr)
            {
                Console.WriteLine(indexShow);
            }
    }
}

